import request from '@/utils/request'
import qs from 'qs';

// 登录
export function subTask(data) {
  return request({
    url: '/task/task/subTask',
    method: 'post',
    headers: {
      'Content-Type':'application/x-www-form-urlencoded'
    },
    data:qs.stringify(data),
  })
}


export function getTaskList(params){
  return request({
    url: '/task/task/index',
    method: 'get',
    params
  })
}



export function gettxList(params){
  return request({
    url: '/task/pay/index',
    method: 'get',
    params
  })
}

// 活动查看详情
export function getTaskDetail(params){
  return request({
    url: '/task/task/info',
    method: 'get',
    params
  })
}


// 提现查看详情
export function getTxDetail(params){
  return request({
    url: '/task/pay/info',
    method: 'get',
    params
  })
}

// 检测链接
export function checkUrl(params){
  return request({
    url: '/task/index/urlcheck',
    method: 'get',
    params
  })
}

export function checkTitle(params){
  return request({
    url: '/task/index/titlecheck',
    method: 'get',
    params
  })
}

